import request from '@/utils/request'

// 查询七率水列表
export function listWater_sum(query) {
  return request({
    url: '/productionProcess/water_sum/list',
    method: 'get',
    params: query
  })
}

// 查询七率水详细
export function getWater_sum(id) {
  return request({
    url: '/productionProcess/water_sum/' + id,
    method: 'get'
  })
}

// 新增七率水
export function addWater_sum(data) {
  return request({
    url: '/productionProcess/water_sum',
    method: 'post',
    data: data
  })
}

// 自动生成
export function addWater_sum_auto(data) {
  return request({
    url: '/productionProcess/water_sum/auto',
    method: 'post',
    data: data
  })
}

// 修改七率水
export function updateWater_sum(data) {
  return request({
    url: '/productionProcess/water_sum',
    method: 'put',
    data: data
  })
}

// 删除七率水
export function delWater_sum(id) {
  return request({
    url: '/productionProcess/water_sum/' + id,
    method: 'delete'
  })
}


// 均值分析
export function waterCount1(query) {
  return request({
    url: '/productionProcess/water_sum/waterCount1',
    method: 'put',
    data: query
  })
}

// 水利用率统计分析
export function waterCount2(query) {
  return request({
    url: '/productionProcess/water_sum/waterCount2',
    method: 'put',
    data: query
  })
}

// 吨耗电统计分析
export function waterCount3(query) {
  return request({
    url: '/productionProcess/water_sum/waterCount3',
    method: 'put',
    data: query
  })
}

// 水利用率统计
export function waterCount4(query) {
  return request({
    url: '/productionProcess/water_sum/waterCount4',
    method: 'put',
    data: query
  })
}

// 吨耗电统计
export function waterCount5(query) {
  return request({
    url: '/productionProcess/water_sum/waterCount5',
    method: 'put',
    data: query
  })
}


// 均值统计
export function waterCountIndex(query) {
  return request({
    url: '/productionProcess/water_sum/waterCountIndex',
    method: 'put',
    data: query
  })
}